﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="LEARNREN.COM.WebSite.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHearder" runat="server">
    <title>
        <%=LEARNREN.COM.BLL.BasicCache.SiteConfig.SiteName%>-<%=LEARNREN.COM.BLL.BasicCache.SiteConfig.KeyWords%>
    </title>
    <meta name="keywords" content="<%=LEARNREN.COM.BLL.BasicCache.SiteConfig.KeyWords%>" />
    <meta name="description" content="<%=LEARNREN.COM.BLL.BasicCache.SiteConfig.KeyWords%>" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpLeftColum1" runat="server">
    <table class="bk" border="0" cellspacing="0" cellpadding="0" width="240" align="center">
        <tbody>
            <tr>
                <td height="270" valign="top">
                    <table border="0" cellspacing="0" cellpadding="0" width="240" align="center" height="27"
                        style="margin-bottom: 8px;">
                        <tbody>
                            <tr>
                                <td class="baicu12" background="/images/hdf/left01.jpg" width="90" align="middle">
                                    产品分类
                                </td>
                                <td background="/images/hdf/left02.jpg" width="100">
                                    &nbsp;
                                </td>
                                <td background="/images/hdf/left02.jpg" width="50" align="middle">
                                    <a href="/ProductList.aspx?id=2">
                                        <img alt="所有产品" border="0" src="/images/hdf/more.gif" width="40" height="12" /></a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0" width="220" align="center">
                        <%foreach (var productCatalogue in productCatalogueList)
                          {
                              
                        %>
                        <tr>
                            <td height="30" width="28" align="middle" class="foot_xx">
                                <img alt="" src="/images/hdf/pot.gif" width="10" height="9" />
                            </td>
                            <td width="192" class="foot_xx">
                                <a href="/ProductList.aspx?id=<%=productCatalogue.Id %>" class="cuhui12">
                                    <%=productCatalogue.Title%></a>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="200" align="center" height="8">
        <tbody>
            <tr>
                <td>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpLeftColum2" runat="server">
    <table class="bk" border="0" cellspacing="0" cellpadding="0" width="240" align="center">
        <tbody>
            <tr>
                <td height="270" valign="top">
                    <table border="0" cellspacing="0" cellpadding="0" width="240" align="center" height="27">
                        <tbody>
                            <tr>
                                <td class="baicu12" background="/images/hdf/left01.jpg" width="90" align="middle">
                                    新闻动态
                                </td>
                                <td background="/images/hdf/left02.jpg" width="100">
                                    &nbsp;
                                </td>
                                <td background="/images/hdf/left02.jpg" width="50" align="middle">
                                    <a href="/ArticleList.aspx?id=4" title="所有新闻">
                                        <img alt="所有新闻" border="0" src="/images/hdf/more.gif" width="40" height="12" /></a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0" width="220" align="center" style="margin-top: 8px;">
                        <tbody>
                            <%foreach (var article in LastArticleList)
                              {                              
                            %>
                            <tr>
                                <td height="25" width="25" align="middle" class="foot_xx">
                                    <img src="/images/hdf/pot.gif" width="10" height="9" alt="活动房" />
                                </td>
                                <td width="195" class="foot_xx">
                                    <a href="/ShowArticle.aspx?id=<%=article.Id %>" target="_blank">
                                        <%=article.Title%></a>
                                </td>
                            </tr>
                            <%} %>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cpMain" runat="server">
    <table class="bk" border="0" cellspacing="0" cellpadding="0" width="750" align="center">
        <tbody>
            <tr>
                <td height="270" valign="top">
                    <table border="0" cellspacing="0" cellpadding="0" width="750" align="center" height="27">
                        <tbody>
                            <tr>
                                <td class="baicu12" background="/images/hdf/left01.jpg" width="90" align="middle">
                                    关于我们
                                </td>
                                <td background="/images/hdf/left02.jpg" width="610">
                                    &nbsp;
                                </td>
                                <td background="/images/hdf/left02.jpg" width="50" align="middle">
                                    <a href="/SinglePage.aspx?id=1">
                                        <img src="/images/hdf/more.gif" width="40" height="12" border="0" alt="活动房" /></a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0" width="740" align="center" height="154">
                        <tbody>
                            <tr>
                                <td class="news_info" valign="top">
                                    <asp:Literal ID="ltAboutUs" runat="server" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="200" align="center" height="8">
        <tbody>
            <tr>
                <td>
                </td>
            </tr>
        </tbody>
    </table>
    <table class="bk" border="0" cellspacing="0" cellpadding="0" width="750" align="center">
        <tbody>
            <tr>
                <td height="360" valign="top">
                    <table border="0" cellspacing="0" cellpadding="0" width="750" align="center" height="27">
                        <tbody>
                            <tr>
                                <td class="baicu12" background="/images/hdf/left01.jpg" width="90" align="middle">
                                    产品展示
                                </td>
                                <td background="/images/hdf/left02.jpg" width="610">
                                    &nbsp;
                                </td>
                                <td background="/images/hdf/left02.jpg" width="50" align="middle">
                                    <a href="/ProductList.aspx?id=2">
                                        <img src="/images/hdf/more.gif" width="40" height="12" border="0" alt="最好的活动房" /></a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0" width="740" align="center" height="164">
                        <tbody>
                            <tr align="center">
                                <%
                                    int count = ProductList.Count;
                                    if (count == 0)
                                    {

                                    }
                                    else
                                    {
                                        for (int i = 0; i < 4; i++)
                                        {
                                            if (i >= count)
                                            {
                                                break;
                                            }
                                %>
                                <td>
                                    <table border="0" cellspacing="0" cellpadding="0" width="170" align="center">
                                        <tbody>
                                            <tr>
                                                <td height="140" width="165" align="middle">
                                                    <a href="/ShowProduct.aspx?id=<%=ProductList[i].Id.ToString() %>">
                                                        <img class="picbox" border="1" src="<%=ProductList[i].ProductIco.TrimStart('~') %>"
                                                            width="160" height="120" alt="<%=ProductList[i].ProductName %>" /></a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="24" align="middle">
                                                    <a href="/ShowProduct.aspx?id=<%=ProductList[i].Id.ToString() %>">[<%=ProductList[i].ProductName%>]</a>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <%}
                                    } %>
                            </tr>
                            <tr>
                                <%
                                    for (int i = 4; i < 8; i++)
                                    {
                                        if (i >= count)
                                        {
                                            break;
                                        }
                                %>
                                <td>
                                    <table border="0" cellspacing="0" cellpadding="0" width="170" align="center">
                                        <tbody>
                                            <tr>
                                                <td height="140" width="165" align="middle">
                                                    <a href="/ShowProduct.aspx?id=<%=ProductList[i].Id.ToString() %>">
                                                        <img class="picbox" border="1" src="<%=ProductList[i].ProductIco.TrimStart('~') %>"
                                                            width="160" height="120" alt="<%=ProductList[i].ProductName %>" /></a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td height="24" align="middle">
                                                    <a href="/ShowProduct.aspx?id=<%=ProductList[i].Id.ToString() %>">[<%=ProductList[i].ProductName %>]</a>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <%} %>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="200" align="center" height="8">
        <tbody>
            <tr>
                <td>
                </td>
            </tr>
        </tbody>
    </table>
    <table class="bk" border="0" cellspacing="0" cellpadding="0" width="750" align="center">
        <tbody>
            <tr>
                <td height="202" valign="top">
                    <table border="0" cellspacing="0" cellpadding="0" width="750" align="center" height="27">
                        <tbody>
                            <tr>
                                <td class="baicu12" background="/images/hdf/left01.jpg" width="90" align="middle">
                                    成功案例
                                </td>
                                <td background="/images/hdf/left02.jpg" width="610">
                                    &nbsp;
                                </td>
                                <td background="/images/hdf/left02.jpg" width="50" align="middle">
                                    <a href="/ProjectList.aspx?id=3">
                                        <img border="0" src="/images/hdf/more.gif" width="40" height="12" alt="集装箱活动房案例" /></a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table border="0" cellspacing="0" cellpadding="0" width="740" align="center" height="164">
                        <tbody>
                            <tr>
                                <td align="middle">
                                    <div style="width: 730px; height: 165px; overflow: hidden" id="demox">
                                        <table border="0" cellpadding="0" width="100%" align="center" height="100%" cellspace="0">
                                            <tbody>
                                                <tr>
                                                    <td id="demox1" height="100%" valign="center" width="539" align="middle">
                                                        <table border="0" cellspacing="0" cellpadding="0" width="544">
                                                            <tbody>
                                                                <tr>
                                                                    <%foreach (var project in ProjectList)
                                                                      {
                                                                      
                                                                    %>
                                                                    <td>
                                                                        <table border="0" cellspacing="0" cellpadding="2" width="150" align="center">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td height="124" align="middle">
                                                                                        <a href="/ShowProject.aspx?id=<%=project.Id.ToString() %>">
                                                                                            <img src="<%=project.ProjectIco==null?"":project.ProjectIco.TrimStart('~') %>" class="picbox" border="1" width="160"
                                                                                                height="120" alt="<%=project.ProjectName %>" /></a>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td height="24" align="middle">
                                                                                        <a href="/ShowProject.aspx?id=<%=project.Id.ToString() %>">
                                                                                            <%=project.ProjectName %></a>
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </td>
                                                                    <%} %>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                    <td id="demox2" height="100%" valign="center" width="12" align="middle">
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <script type="text/javascript">
                                            var speed = 30
                                            var demox = document.getElementById("demox");
                                            var demox1 = document.getElementById("demox1");
                                            var demox2 = document.getElementById("demox2");

                                            demox2.innerhtml = demox1.innerhtml;
                                            function marquee() {
                                                if (demox2.offsetwidth - demox.scrollleft <= 0) {
                                                    demox.scrollleft -= demox1.offsetwidth;
                                                }
                                                else {
                                                    demox.scrollleft++;
                                                }
                                            }
                                            var mymar = setinterval(marquee, speed);
                                            demox.onmouseover = function () { clearinterval(mymar); }
                                            demox.onmouseout = function () { mymar = setinterval(marquee, speed); }
                                        </script>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
